<?php
/**
 * @version		0.2.0 joomla zmluvy $
 * @package		com_zjmluvy
 * @copyright	Copyright © 2011 - All rights reserved.
 * @license		GNU/GPL
 * @author    AdrianKo		
 * @website   http://code.google.com/p/joomla-zmluvy
 *
 *
 *1.3.2012
 */

// no direct access
defined('_JEXEC') or die('Restricted access');?>

<?php  JHTML::_('behavior.tooltip');  ?>

<?php
	JToolBarHelper::title( JText::_( 'Detaily kategorie' ), 'categories.png' );
  JToolBarHelper::save();
	JToolBarHelper::apply();
	if (JRequest::getVar('edit')) {
		JToolBarHelper::cancel( 'cancel', 'Close' );
	} else {
		JToolBarHelper::cancel();
	}
//	JToolBarHelper::help( 'screen.users' );

  $editor =& JFactory::getEditor();
?>

	<form action="index.php" method="post" name="adminForm">
		<div class="col width-60">
			<fieldset class="adminform">
				<legend><?php echo JText::_( 'Details' ); ?></legend>

					<table class="admintable">
					<tr>
						<td class="key">
							<label for="title" width="100">
								<?php echo JText::_( 'Název' ); ?>:
							</label>
						</td>
						<td colspan="2">
							<input class="text_area" type="text" name="title" id="title" value="<?php echo $this->category->title; ?>" size="50" maxlength="50" title="<?php echo JText::_( 'Název kategorie' ); ?>" />
						</td>
					</tr>
					<tr>
						<td class="key">
							<label for="title" width="100">
								<?php echo JText::_( 'Zveřejnit' ); ?>:
							</label>
						</td>
						<td colspan="2">
							<?php echo $this->lists['published']; ?>
						</td>
					</tr>
<!--					<tr>
						<td class="key">
							<label for="title" width="100">
								<?php echo JText::_( 'Alias' ); ?>:
							</label>
						</td>
						<td colspan="2">
							<input class="text_area" type="text" name="alias" id="alias" value="<?php echo $this->category->alias; ?>" size="50" maxlength="50" title="<?php echo JText::_( 'Alias kategorie' ); ?>" />
						</td>
					</tr> -->
					

				</table>
			</fieldset>

			<fieldset class="adminform">
				<legend><?php echo JText::_( 'Dlouhý popis kategorie' ); ?></legend>

				<table class="admintable">
					<tr>
						<td valign="top" colspan="3">
							<?php
							// parameters : areaname, content, width, height, cols, rows, show xtd buttons
							echo $editor->display( 'description',  htmlspecialchars($this->category->description, ENT_QUOTES), '550', '300', '60', '20' ) ;
							?>
						</td>
					</tr>
					</table>
			</fieldset>
		</div>
		<div class="clr"></div>

		<input type="hidden" name="option" value="com_jzmluvy" />
		<input type="hidden" name="controller" value="upravakategorie" />
		<input type="hidden" name="id" value="<?php echo $this->category->id; ?>" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="redirect" value="<?php //echo $redirect; ?>" />
		<?php echo JHTML::_( 'form.token' ); ?>
		</form>